#ifndef _USBTALKER_H_
#define _USBTALKER_H_
/**
 *  Copyright (C) 2007 Marcos Diez < marcos AT unitron.com.br >
 *  Copyright (C) 2005 PGT-Linux.org http://www.pgt-linux.org
 *  Author: vandorpe Olivier <vandorpeo@pgt-linux.org>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
////////////////////////// USB TALK

#define URB_LENGTH	16

#define USB_TALK_OK 0
#define USB_TALK_INVALID_MSG  -1
#define USB_TALK_INVALID_READ -2

#define Usb_talk( a , b , c )  usb_talk_debug( __FUNCTION__ , a , b ,c )


#define SEARCH_IN_EVERY_BUS  -1
#define PICK_ANY_DEVICE -1

#define claimYealinkDevice( yealinkDevice , busNumber, deviceNumber ) claimYealinkDeviceV( yealinkDevice , busNumber, deviceNumber , 0)


#define MAX_CONTINUOUS_USB_ERROS 50
extern int usbContinuousBusErrorCounter;


#include "usbTalker.proto.h"

#endif
